Type Compatibility for Extensible Module Types, Their Reference Parameters, and Their Pointer Types

نویسنده

  • Jürgen F. H. Winkler
چکیده

Objects in object-oriented languages have often been treated as a special kind of entity different from other variables or constants. Similarly, their types, which are typically called classes, have often been treated differently from other types. This complicates the understanding of these concepts. The present paper proposes to see the classes as module types leading to a very natural integration of objects and classes into the framework of contemporary programming languages. The main part of the paper contains typing rules for module types for assignment and for value and variable parameters. It is shown that the rules for reference parameters in some existing languages lead to unexpected results and sometimes to undefined behavior. Furthermore, assignment involving dereferenced pointers to modules is studied for the first time in detail. The paper shows that the type compatibility rule for pointer assignment is not sufficient for deref assignment. The last part of the paper contains a comparison of the language definitions and of compilers for Borland Pascal with Objects, C++, Oberon, and Object CHILL.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

What's New in Component Pascal?

types are design tools, they denote interfaces of objects. They are the primary means of Component Pascal to model component interfaces. Denoting records as abstract allows to indicate more precisely the use of a record: as an interfacing construct rather than an implementation construct. Nevertheless, an abstract type may have all types of methods (see below), i.e., it is not forced to be full...

متن کامل

Assessment of the Immunogenicity of Foot and Mouth Disease Vaccine Produced by Razi Institute against Types of A13, A15 and O2010 of FMD Virus

Background and Aims: Foot-and-Mouth Disease (FMD) is a highly contagious infectious disease of livestock which has made a barrier to hygiene causing severe loss in livestock and their products. The aim of this study was the assessment of antibody response against foot and mouth disease virus  types A13, A15 , O2010, after injection of FMD vaccine candidate produced by Razi Institue. Mater...

متن کامل

The relationship between writing strategies and personality types of graduate Iranian EFL learners

In recent years, language learning research has been paying more attention to the factors that may  affect  the  choice  by  language  learners  of  language  learning  strategies  in  general  and writing strategies in particular to enhance their own learning. Given the socio-cognitive nature of  the  act  of  writing,  as  Roca  de  Larios  et  al.  (2002)  note,  both  writer-internal  and  ...

متن کامل

Effect of Surfactant Type and Concentration on the Duration of Mucoadhesion of Carbopol 934 and HPMC Solid Compacts

In order to formulate an efficient and durable mucoadhesive drug delivery system, careful consideration of formulation-related parameters is critical. This study was conducted to investigate the effect of the presence of various types and concentrations of surfactants within or outside Carbopol 934 (C934) as well as hydroxypropylmethyl cellulose (HPMC) solid compacts, on their duration of mucoa...

متن کامل

Effect of Surfactant Type and Concentration on the Duration of Mucoadhesion of Carbopol 934 and HPMC Solid Compacts

In order to formulate an efficient and durable mucoadhesive drug delivery system, careful consideration of formulation-related parameters is critical. This study was conducted to investigate the effect of the presence of various types and concentrations of surfactants within or outside Carbopol 934 (C934) as well as hydroxypropylmethyl cellulose (HPMC) solid compacts, on their duration of mucoa...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. UCS

دوره 3  شماره 

صفحات  -

تاریخ انتشار 1997